#! /bin/bash
export LANG=en_US.UTF-8

export LANG=en_US.UTF-8
pid=$*
psinfo=`lsof -p $pid|grep txt|grep -v ps|grep -v grep`
config_path=`echo $psinfo|awk -F ' ' '{print $9}'`
echo "${config_path%*memcached}"

